require(['jquery',
         'global',
         'underscore',
         'module/util',
         'module/popup',
         'module/ajax',
         'bootstrap',
         'pixeladmin',
         'viewer',
         'requirejs/domready!'],
 function($, global, _, util){
	
	window.PixelAdmin.start();//初始化菜单
	
	var _position = $(".order-vm");
	var _param = _position.find("[name='isbnInformationId']").val();

	var fillOrderData = function(data, position) {
		$.ajax({
			url : global.context + '/web/isbnorder/getOrderData',
			data : {
				isbnInformationId : data
			},
			type : 'POST',
			async: false,
			success : function(result) {
				
				if (result) {
					var _returnData = JSON.parse(result.data);
					
					util.fillInput(position, _returnData);
				}
			},
			error : function(e) {
				alert("数据查询失败！");
			}
		});
	}
	
	var bindEvent = function() {
		fillOrderData(_param, _position);
	}
	
	// init start
	var init  = function() {
		bindEvent();
	};
	
	init();
})